package com.yzc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yzc.model.entity.Announcement.AnnouncementBean;
import com.yzc.model.query.system.AnnouncementReq;
import com.yzc.model.vo.system.AnnouncementVo;


import java.util.List;

public interface AnnouncementService extends IService<AnnouncementBean> {
    AnnouncementVo acquireNewAnnouncement();

    List<AnnouncementVo> getAllAnnouncement();

    List<AnnouncementVo> getAnnouncementContent(String content);

    List<AnnouncementVo> loadAnnouncementByUserId(Integer id);

    void releaseAnnouncement(AnnouncementReq announcementReq);

    void updateAnnouncement(AnnouncementVo announcementVo);

    void deleteAnnouncementById(Integer id);

    List<AnnouncementVo> selectAnnouncement( String content,Integer publisherId);
}
